import { stringify } from 'querystring';
import request from '@/utils/request';
import { DEFAULT_URL_TITLE_TYPE, DEFAULT_URL_DUTYSUDDEN } from '@/constants';

export async function queryData(query, body) {
    return request(`${DEFAULT_URL_TITLE_TYPE}/list?${stringify(query)}`, { method: 'POST', body });
}

// 查询
export async function queryDataList(parameter, body) {
    return request(`${DEFAULT_URL_DUTYSUDDEN}/list?${stringify(parameter)}`, { method: 'POST', body });
}